package com.stx.test.excends;

/**
 * packageName com.stx.test
 *
 * @author YangYi
 * @className Dog
 * @date 2025/9/16
 * @description TODO
 */
public class Dog {

    private String name;
    private int age;
    private String color;
    private double wiegth;

    public void eat(){
        System.out.println("狗开始吃饭");
    }

    public Dog(){
        System.out.println("Dog 无参构造函数");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWiegth() {
        return wiegth;
    }

    public void setWiegth(double wiegth) {
        this.wiegth = wiegth;
    }
}
